package o;

import com.huawei.appgallery.downloadengine.api.SessionDownloadTask;
import com.huawei.appgallery.foundation.account.bean.UserSession;

public class dvo extends cvs {
    public static final String APIMETHOD = "client.startDownloadRep";
    private static final String TAG = "StartDownloadRequest";
    private String accessId_;
    private String appId_;
    private int appType_;
    private String detailId_;
    private int dlType_;
    private int maple_;
    private int packingType_;
    public String pkgName_;
    private int renew_;
    private String tId_;
    private String trace_;
    private String url_;
    public int versionCode;

    public dvo(SessionDownloadTask sessionDownloadTask, int i) {
        this.dlType_ = 0;
        this.appType_ = 1;
        this.maple_ = 0;
        this.renew_ = 0;
        setMethod_(APIMETHOD);
        this.appId_ = sessionDownloadTask.ॱˋ();
        this.detailId_ = sessionDownloadTask.ॱˊ();
        this.pkgName_ = sessionDownloadTask.ˊˊ();
        this.trace_ = sessionDownloadTask.ˋᐝ();
        this.dlType_ = i;
        this.url_ = sessionDownloadTask.ᐝ();
        this.tId_ = String.valueOf(sessionDownloadTask.ʾ());
        this.accessId_ = sessionDownloadTask.ॱͺ();
        this.versionCode = sessionDownloadTask.ॱᐝ();
        this.appType_ = sessionDownloadTask.ॱॱ();
        this.maple_ = sessionDownloadTask.ˋ();
        this.packingType_ = sessionDownloadTask.ꓸ();
        setStoreApi("clientApi");
        setServiceType_(sessionDownloadTask.ॱ());
        UserSession instance = UserSession.getInstance();
        if (!(instance == null || instance.getServiceToken() == null)) {
            ॱ(epk.ˏ());
        }
        if (dug.ॱ(sessionDownloadTask.ˊˊ()) != null) {
            this.renew_ = 1;
        }
    }

    public dvo(SessionDownloadTask sessionDownloadTask) {
        this(sessionDownloadTask, sessionDownloadTask.ˌ());
    }
}
